package com.swsc.ai.constant;

/**
 * @describe: 环境常量
 * @author: DuanCXin
 * @created: 2023-10-23 13:13
 */
public class EnvConstant {
    /**
     * 开发环境
     */
    public static final String URL_DEV = "jdbc:mysql://127.0.0.1:3306/tp_sync";
    public static final String DRIVER_DEV = "com.mysql.jdbc.Driver";
    public static final String USER_DEV = "root";
    public static final String PASSWORD_DEV = "123456";
    public static final String SPARK_ENV_DEV = "local[*]";

    /**
     * 正式环境
     */
    public static final String URL_PROD = "jdbc:mysql://172.18.10.18:33017/tp_sync";
    public static final String DRIVER_PROD = "com.mysql.cj.jdbc.Driver";
    public static final String USER_PROD = "tp_dba";
    public static final String PASSWORD_PROD = "tp@swsc600369";
    public static final String SPARK_ENV_PROD = "yarn";

    /**
     * 推数本地库
     */
    public static final String MYSQL_URL_DEV = "jdbc:mysql://127.0.0.1:3306/marketing";
    public static final String MYSQL_DRIVER_DEV = "com.mysql.jdbc.Driver";
    public static final String MYSQL_USER_DEV = "root";
    public static final String MYSQL_PASSWORD_DEV = "123456";

    /**
     * 推数正式库
     */
    public static final String MYSQL_URL_PROD = "jdbc:mysql://172.18.10.18:33017/ai_marketing_web";
    public static final String MYSQL_DRIVER_PROD = "com.mysql.jdbc.Driver";
    public static final String MYSQL_USER_PROD = "ai_mkt";
    public static final String MYSQL_PASSWORD_PROD = "ai_mkt600369";

    /**
     * 推数的表
     */
    public static final String MYSQL_TABLE = "business_group_release";

    /**
     * 当日计算结果存储路径
     */
    public static final String CURRENT_DATA_PATH = "/current";
    /**
     * 历史计算结果存储路径
     */
    public static final String HISTORY_DATA_PATH = "/history";
    /**
     * HDFS的地址
     */
    public static final String HDFS_ENDPORT = "hdfs://hadoop01:8020";

    /**
     * 分片数
     */
    public static final Integer PARTITION_NUM = 8;
}
